package com.daxue.localclient.utils;

import java.util.UUID;

/**
 * @author daxue0929
 * @date 2023/1/12
 */

public class IDUtils {

    public static String getId(String prefix) {
        String id = UUID.randomUUID().toString().replaceAll("-", "");
        return prefix + "-" + id;
    }

    public static void main(String[] args) {
        System.out.println(IDUtils.getId("123"));
    }
}
